﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Пятн
{
    public class Collections
    {

        public Collections(int choise, int size)
        {
            
            switch (choise)
            {
                case 1:
                    {
                        Form2 form2 = new Form2(Пятн.Properties.Resources._1Picture);
                        {
                            form2.BackgroundImage = Пятн.Properties.Resources._1Фон;
                            form2.pictureBox1.Image = Пятн.Properties.Resources._16;
                            form2.pictureBox2.Image = Пятн.Properties.Resources._17;
                            form2.pictureBox3.Image = Пятн.Properties.Resources._11;
                            form2.pictureBox4.Image = Пятн.Properties.Resources._13;
                            form2.pictureBox5.Image = Пятн.Properties.Resources._18;
                            form2.pictureBox6.Image = Пятн.Properties.Resources._14;
                            form2.pictureBox7.Image = Пятн.Properties.Resources._15;
                            form2.pictureBox8.Image = Пятн.Properties.Resources._12;
                            form2.game.pos = new int[] { 6, 7, 1, 3, 8, 4, 5, 2, 0 };
                        };
                        form2.Show();
                    }
                    break;
                case 2:
                    {
                        Form2 form2 = new Form2(Пятн.Properties.Resources._2Picture);
                        {
                            form2.BackgroundImage = Пятн.Properties.Resources._2Фон;
                            form2.pictureBox1.Image = Пятн.Properties.Resources._26;
                            form2.pictureBox2.Image = Пятн.Properties.Resources._27;
                            form2.pictureBox3.Image = Пятн.Properties.Resources._21;
                            form2.pictureBox4.Image = Пятн.Properties.Resources._23;
                            form2.pictureBox5.Image = Пятн.Properties.Resources._28;
                            form2.pictureBox6.Image = Пятн.Properties.Resources._24;
                            form2.pictureBox7.Image = Пятн.Properties.Resources._25;
                            form2.pictureBox8.Image = Пятн.Properties.Resources._22;
                            form2.game.pos = new int[] { 6, 7, 1, 3, 8, 4, 5, 2, 0 };
                        };
                        form2.Show();
                    }
                    break;
                case 3:
                    {
                        Form2 form2 = new Form2(Пятн.Properties.Resources._3Picture);
                        {
                            form2.BackgroundImage = Пятн.Properties.Resources._3Фон1;
                            form2.pictureBox1.Image = Пятн.Properties.Resources._36;
                            form2.pictureBox2.Image = Пятн.Properties.Resources._37;
                            form2.pictureBox3.Image = Пятн.Properties.Resources._31;
                            form2.pictureBox4.Image = Пятн.Properties.Resources._33;
                            form2.pictureBox5.Image = Пятн.Properties.Resources._38;
                            form2.pictureBox6.Image = Пятн.Properties.Resources._34;
                            form2.pictureBox7.Image = Пятн.Properties.Resources._35;
                            form2.pictureBox8.Image = Пятн.Properties.Resources._32;
                            form2.game.pos = new int[] { 6, 7, 1, 3, 8, 4, 5, 2, 0 };
                        };
                        form2.Show();
                    }
                    break;
                case 4:
                    {
                        Form3 form3 = new Form3(Пятн.Properties.Resources._4Picture);
                        {
                            form3.BackgroundImage = Пятн.Properties.Resources._4Фон;
                            form3.pictureBox1.Image = Пятн.Properties.Resources._46;
                            form3.pictureBox2.Image = Пятн.Properties.Resources._411;
                            form3.pictureBox3.Image = Пятн.Properties.Resources._41;
                            form3.pictureBox4.Image = Пятн.Properties.Resources._415;
                            form3.pictureBox5.Image = Пятн.Properties.Resources._47;
                            form3.pictureBox6.Image = Пятн.Properties.Resources._43;
                            form3.pictureBox7.Image = Пятн.Properties.Resources._410;
                            form3.pictureBox8.Image = Пятн.Properties.Resources._413;
                            form3.pictureBox9.Image = Пятн.Properties.Resources._48;
                            form3.pictureBox10.Image = Пятн.Properties.Resources._42;
                            form3.pictureBox11.Image = Пятн.Properties.Resources._45;
                            form3.pictureBox12.Image = Пятн.Properties.Resources._414;
                            form3.pictureBox13.Image = Пятн.Properties.Resources._49;
                            form3.pictureBox14.Image = Пятн.Properties.Resources._412;
                            form3.pictureBox15.Image = Пятн.Properties.Resources._44;
                            form3.game.pos = new int[] { 6, 11, 1, 15, 7, 3, 10, 13, 8, 2, 5, 14, 9, 12, 4, 0 };
                        };
                        form3.Show();
                    }
                    break;

                case 5:
                    {
                        Form3 form3 = new Form3(Пятн.Properties.Resources._5Picture);
                        {
                            //form3.BackgroundImage = Пятн.Properties.Resources._5Фон;
                            form3.pictureBox1.Image = Пятн.Properties.Resources._56;
                            form3.pictureBox2.Image = Пятн.Properties.Resources._511;
                            form3.pictureBox3.Image = Пятн.Properties.Resources._51;
                            form3.pictureBox4.Image = Пятн.Properties.Resources._515;
                            form3.pictureBox5.Image = Пятн.Properties.Resources._57;
                            form3.pictureBox6.Image = Пятн.Properties.Resources._53;
                            form3.pictureBox7.Image = Пятн.Properties.Resources._510;
                            form3.pictureBox8.Image = Пятн.Properties.Resources._513;
                            form3.pictureBox9.Image = Пятн.Properties.Resources._58;
                            form3.pictureBox10.Image = Пятн.Properties.Resources._52;
                            form3.pictureBox11.Image = Пятн.Properties.Resources._55;
                            form3.pictureBox12.Image = Пятн.Properties.Resources._514;
                            form3.pictureBox13.Image = Пятн.Properties.Resources._59;
                            form3.pictureBox14.Image = Пятн.Properties.Resources._512;
                            form3.pictureBox15.Image = Пятн.Properties.Resources._54;
                            form3.game.pos = new int[] { 6, 11, 1, 15, 7, 3, 10, 13, 8, 2, 5, 14, 9,12, 4, 0 };
                        };
                        form3.Show();
                    }
                    break;

                case 6:
                    {
                        Form3 form3 = new Form3(Пятн.Properties.Resources._6Picture);
                        {
                            form3.BackgroundImage = Пятн.Properties.Resources._6Фон;
                            form3.pictureBox1.Image = Пятн.Properties.Resources._66;
                            form3.pictureBox2.Image = Пятн.Properties.Resources._611;
                            form3.pictureBox3.Image = Пятн.Properties.Resources._61;
                            form3.pictureBox4.Image = Пятн.Properties.Resources._615;
                            form3.pictureBox5.Image = Пятн.Properties.Resources._67;
                            form3.pictureBox6.Image = Пятн.Properties.Resources._63;
                            form3.pictureBox7.Image = Пятн.Properties.Resources._610;
                            form3.pictureBox8.Image = Пятн.Properties.Resources._613;
                            form3.pictureBox9.Image = Пятн.Properties.Resources._68;
                            form3.pictureBox10.Image = Пятн.Properties.Resources._62;
                            form3.pictureBox11.Image = Пятн.Properties.Resources._65;
                            form3.pictureBox12.Image = Пятн.Properties.Resources._614;
                            form3.pictureBox13.Image = Пятн.Properties.Resources._69;
                            form3.pictureBox14.Image = Пятн.Properties.Resources._612;
                            form3.pictureBox15.Image = Пятн.Properties.Resources._64;
                            form3.game.pos = new int[] { 6, 11, 1, 15, 7, 3, 10, 13, 8, 2, 5, 14, 9, 12, 4, 0 };
                        };
                        form3.Show();
                    }
                    break;
            }
        }
    }
}
